Skip to content

Fix PHP 8.1 deprecation warning in offsetExists, offsetGet, offsetSet, offsetUnset#350

Open
francesco182 wants to merge 1 commit into
slimphp:2.xfrom
francesco182:fix-twig-deprecation
Open

Fix PHP 8.1 deprecation warning in offsetExists, offsetGet, offsetSet, offsetUnset#350
francesco182 wants to merge 1 commit into
slimphp:2.xfrom
francesco182:fix-twig-deprecation

Conversation

@francesco182

@francesco182 francesco182 commented Jul 17, 2026

Copy link
Copy Markdown

The #[\ReturnTypeWillChange] attribute has been added to resolve deprecation warnings and ensure the class is fully compatible with PHP versions 8.1 to 8.5.

The attribute has been applied to the following methods of the Twig class:

  • offsetExists()
  • offsetGet()
  • offsetSet()
  • offsetUnset()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants